﻿using Domain.Model.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ValidBox4Mvc.ValidRules;

namespace Domain.Model
{
    public class Pay:Entity
    {
        public Guid UserID { get; set; }
        /// <summary>
        /// 会员编号
        /// </summary>
        [Length(50)]
        public string MemberNo { get; set; }
        /// <summary>
        /// 汇入银行
        /// </summary>
        [Length(50)]
        public string PayBankName { get; set; }
        /// <summary>
        /// 汇款人姓名
        /// </summary>
        [Length(50)]
        [Required]
        public string PayUserName { get; set; }
        /// <summary>
        /// 汇款人账号
        /// </summary>
        [Length(6, 6, ErrorMessage = "请输入汇款人账号后6位数")]
        public string PayNum { get; set; }
        /// <summary>
        /// 人民币
        /// </summary>
        [Required]
        public decimal RMB { get; set; }
        /// <summary>
        /// 欧元
        /// </summary>
        public decimal Euro{ get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public State State { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Length(150)]
        public string Remark { get; set; }
    }
}
